package model;
//学生bean
public class Student extends User {
    private String className; // 班级
    private String roomid; // 宿舍号

    // 构造器
    public Student() {
        super();
         setPower("student"); // 设置 power 为 student
    }

    public Student(String id, String name, String password, String className,String roomid) {
        super(); 
        setId(id); // 使用父类的 setId 方法设置 id
        setPassword(password); // 使用父类的 setPassword 方法设置 password
         this.className = className;
        this.roomid = roomid;
       
    }

    // Getter 和 Setter 方法
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

	public String getRoomid() {
		return roomid;
	}

	public void setRoomid(String roomid) {
		this.roomid = roomid;
	}

    
}

